package com.group01.community.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group01.community.entity.ZyOwner;
import com.group01.community.entity.ZyRepair;
import com.group01.community.entity.vo.ZyRepairVo;
import com.group01.community.mapper.ZyRepairMapper;
import com.group01.community.service.ZyRepairService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 报修信息 服务实现类
 * </p>
 *
 * @author guoyuan
 * @since 2025-05-01
 */
@Service
public class ZyRepairServiceImpl extends ServiceImpl<ZyRepairMapper, ZyRepair> implements ZyRepairService {

    @Autowired(required = false)
    private ZyRepairMapper zyRepairMapper;

    @Override
    public IPage<ZyRepairVo> selectZyRepairPage(ZyRepairVo zyRepair) {
        return zyRepairMapper.selectZyRepairPage(new Page<>(zyRepair.getCurrent(),zyRepair.getSize()),zyRepair);
    }

}
